package com.neutech.Service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.neutech.mapper.UserMapper;
import com.neutech.po.User;

@Service
public class UserService {
	@Autowired
	private UserMapper userMapper;
	public User getUser(int id){
			return userMapper.findUserById(id);

	}
	public User addUserById(User user){
	 userMapper.addUserById(user);
	 return new User();
		
}
	public User delectUser(User user){
		 userMapper.deleteUser(user);
		 return new User();
			
	}
	public User updateuser(User user){
		userMapper.updateuser(user);
		return new User();
	}
}
